/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.seckill.common.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 秒杀订单
 *
 * @author LGH
 * @date 2019-08-28 09:36:59
 */
@Data
@TableName("tz_seckill_order")
public class SeckillOrder implements Serializable{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("秒杀订单id")
    @TableId
    private Long seckillOrderId;

    @ApiModelProperty("秒杀id")
    private Long seckillId;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("商品id")
    private Long prodId;

    @ApiModelProperty("订单号")
    private String orderNumber;

    @ApiModelProperty("状态 -1指无效，0指成功，1指已付款")
    private Integer state;

    @ApiModelProperty("秒杀到的商品数量")
    private Integer prodCount;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("秒杀规格id")
    private Long seckillSkuId;
}
